home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
coreaids.arc
/
MOVE_BYT.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-06-25
|
912b
|
38 lines
; DESC: Moves a source buffer to a dest. buffer V1.00
; IN: *{SEG_VAL1} segment and
; *{OFFSET1} offset of input buffer
; *{SEG_VAL2} segment and
; *{OFFSET2} offset of output buffer
; *{NUM_CHARS} # of chars to move
; SAMPLE: Callm MOVE_BYT,<SEG_VAL1,OFFSET1,SEG_VAL2,OFFSET2,
; NUM_CHARS>,
; ##################################################################
Extrn PUSHALL:Near
Extrn POPALL:Near
MOV_BYTC Segment
Assume CS:MOV_BYTC
Public MOVE_BYT
;notice.
DB 'MOVE_BYT - V1.00, Copyright 1987, CoreTechs ',0DH,0AH
MOVE_BYT Proc Near
Call PUSHALL ;save registers.
Pop CX ;get number of characters.
Pop DI ;destination offset.
Pop ES ;destination segment.
Pop SI ;source offset.
Pop DS ;source segment.
Rep MOVSB ;perform move operation.
Call POPALL
Ret
MOVE_BYT Endp
MOV_BYTC Ends
End